package com.inspur.cloud.entity.dataspace.ao.resource;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "Hdfs列表查询返回对象")
public class HdfsAO {
    @ApiModelProperty(value = "本资源ID")
    private Integer resourceId;
    @ApiModelProperty(value = "路径（文件夹或文件名），新建和编辑时需要传完整的路径名")
    private String url;
    @ApiModelProperty(value = "租户列表，返回时使用")
    private List<String> tenantList;
    @ApiModelProperty(value = "用户列表，返回时使用")
    private List<String> userList;
    @ApiModelProperty(value = "权限字段，以|隔开，比如 READ|WRITE")
    private String powerList;
    @ApiModelProperty(value = "配额空间大小")
    private Integer capacity;
    @ApiModelProperty(value = "配额大小单位，1.MB 2.GB 3.TB ，新建和编辑时必传")
    private Integer unit;
    @ApiModelProperty(value = "文件数量")
    private Integer fileNum;
    @ApiModelProperty(value = "创建者")
    private String creator;
    @ApiModelProperty(value = "拥有者")
    private String owner;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date insDate;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updDate;


}
